package com.yuanfengPlus.basicInfoManage.AddressLibrary.controller;

import com.rabbitmq.client.Address;
import com.yuanfengPlus.basicInfoManage.AddressLibrary.model.AddressLibrary;
import com.yuanfengPlus.basicInfoManage.AddressLibrary.service.IAddressLibraryService;
import com.yuanfengPlus.utils.Result;
import io.swagger.annotations.Api;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Api(tags = "地址库接口")

public class AddressLibraryController {
    @Autowired
    private IAddressLibraryService iaddressLibraryService;
    AddressLibrary addressLibrary = new AddressLibrary();
    @PostMapping("/addressLibrary")
    public Result addressLibrary(@RequestBody AddressLibrary addressLibrary,@RequestParam("page") int page,@RequestParam("size") int size) {
        return iaddressLibraryService.queryAddressLibrary(addressLibrary, page, size);
    }

}
